#include <CommandInsertTrafficLight.h>
Inheritance diagram for CommandInsertTrafficLight:

Public Member Functions | |
| CommandInsertTrafficLight (osg::Vec3 pos, OSGWindows *osgwind, TrafficLightTypes newType, TrafficLightColor newColor, TrafficLightColor newArrowColor) | |
| bool | execute () |
| bool | unexecute () |
Private Attributes | |
| OSGWindows * | osgwind_ |
| TrafficLight * | light |
| vector< TraffEduObject * > | insertedObjs_ |
Definition at line 8 of file CommandInsertTrafficLight.h.
|
||||||||||||||||||||||||
|
A constructor. Initializes osgwind_ and creates a new traffic light object by using the given parameters.
Definition at line 3 of file CommandInsertTrafficLight.cpp. References OSGWindows::addObject(), TraffEduObject::getObjectGroup(), insertedObjs_, light, osgwind, osgwind_, TraffEduObject::setPosition(), and TraffEduObject::setScale(). |
|
|
do the insertion of traffic light object operation.
Implements Command. Definition at line 19 of file CommandInsertTrafficLight.cpp. References OSGWindows::doAddGeode(), light, and osgwind_. |
|
|
undo the insertion of traffic light object operation.
Implements Command. Definition at line 27 of file CommandInsertTrafficLight.cpp. References OSGWindows::doDeleteGeode(), light, and osgwind_. |
|
|
a private vector of TraffEduObjects. It holds the inserted traffic light objects. Definition at line 28 of file CommandInsertTrafficLight.h. Referenced by CommandInsertTrafficLight(). |
|
|
a private variable. It is used to hold the created traffic light object. Definition at line 22 of file CommandInsertTrafficLight.h. Referenced by CommandInsertTrafficLight(), execute(), and unexecute(). |
|
|
a private variable. It is initialized with the unique OSGWindows instance. Definition at line 16 of file CommandInsertTrafficLight.h. Referenced by CommandInsertTrafficLight(), execute(), and unexecute(). |
1.4.6-NO